import api from '../../js/api';
Page({

    data: {
        dataList: []
    },

    onLoad(options) {

        let id = options.id
        console.log("id", id);
        this.setData({ id })
        this.loadData();

    },

    onShow() {
        this.loadData();
    },

    loadData() {
        api.getYiCangDanChu_DuoWei(this.data.id).then(r => {
            console.log(r);
            this.setData({ dataList: r.data })
        })

    },
    itemTap(e) {
        let scode = e.currentTarget.dataset.scode
        let sub_fld4 = e.currentTarget.dataset.duowei
        let busiinvcode = e.currentTarget.dataset.busiinvcode
        // console.log(id);
        wx.navigateTo({
            url: '../YiCangDanChuNext/YiCangDanChuNext?id=' + this.data.id + "&scode=" + scode + "&sub_fld4=" + sub_fld4 + "&busiinvcode=" + busiinvcode
        })
    }
})